
import 'package:flutter/material.dart';

void main(){
  // runApp(const Center(
  //   child: Text(
  //     "你好啊，Flutter,12345",
  //     textDirection: TextDirection.rtl,
  // ),
  // ));
  runApp(const MyApp());
}

//自定义组件
class MyApp extends StatelessWidget{
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    // throw UnimplementedError();
    return const Center(
      child:
      Text("哈哈哈哈哈哈",
        textDirection: TextDirection.ltr,
        style: TextStyle(
          fontSize: 50.0,
          // color: Colors.red
          color: Color.fromARGB(100, 255, 0, 0)
        ),
      ),
    );

  }

}

